﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MvcApplicationBindersSample.Models;

namespace MvcApplicationBindersSample.Controllers {
    public class BindingController : Controller {

        [HttpGet]
        public ActionResult BindVersion() {
            return View();
        }

        [HttpPost]
        public ActionResult BindVersion(BindVersionModel model) {
            return View(model);
        }

        [HttpGet]
        public ActionResult BindTryParse() {
            return View();
        }

        [HttpPost]
        public ActionResult BindTryParse(BindTryParseModel model) {
            return View(model);
        }

        [HttpGet]
        public ActionResult BindImmutable() {
            return View();
        }

        [HttpPost]
        public ActionResult BindImmutable(BindImmutableModel model) {
            return View(model);
        }

        [HttpGet]
        public ActionResult BindNever() {
            return View();
        }

        [HttpPost]
        public ActionResult BindNever(BindNeverModel model) {
            return View(model);
        }

        [HttpGet]
        public ActionResult BindRequired() {
            return View();
        }

        [HttpPost]
        public ActionResult BindRequired(BindRequiredModel model) {
            return View(model);
        }

        [HttpGet]
        public ActionResult BindReadOnlyCollection() {
            return View();
        }

        [HttpPost]
        public ActionResult BindReadOnlyCollection(BindReadOnlyCollectionModel model) {
            return View(model);
        }

    }
}
